import VueRouter from 'vue-router'

import home from '../components/Home.vue'
import login from '../components/Login.vue'

const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect: '/login'
    }, {
      path: '/login',
      name: 'login',
      component: login
    }, {
      path: '/home',
      name: 'home',
      meta: {
        requireLogin: true
      },
      component: home
    },

  ]
});

export default router